Currently supports OS 2.xx only.
Copyright (C) 2007 Gunar Megger, 0xff@quantentunnel.de
- Copyright (C) 2005 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
Read DeLorme drawing files (.an1)
- Copyright (C) 2005 Ron Parker and Robert Lipe.
+ Copyright (C) 2005-2014 Ron Parker and Robert Lipe.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
Distance from point to arc filter
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Utilities for parsing Character Separated Value files (CSV)
Copyright (C) 2002 Alex Mottram (geo_alexm at cox-internet.com)
- Copyright (C) 2002-2007 Robert Lipe
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
- Copyright (C) 2002-2013 Robert Lipe, robertlipe@gpsbabel.org
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
DeLorme PN-20/40 USB "DeLBin" protocol
Copyright (C) 2009 Paul Cornett, pc-gpsb at bullseye.com
- Copyright (C) 2005, 2009 Robert Lipe, robertlipe@gpsbabel.org
+ Copyright (C) 2005-2014 Robert Lipe, robertlipe+source@gpsbabel.orgg
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
exact duplicate point filter utility.
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
Functions to indicate inconsistent or fatal conditions.
- Copyright (C) 2002-2005 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
Describe vectors containing filter operations.
- Copyright (C) 2002,2004,2005,2006,2007 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
Filter definitions.
- Copyright (C) 2005 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2005-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
static int
-waypt_read_cb(int total_ct, GPS_PWay* way)
+waypt_read_cb(int total_ct, GPS_PWay* )
{
static int i;
}
}
-static int lap_read_nop_cb(int n, struct GPS_SWay** dp)
+static int lap_read_nop_cb(int, struct GPS_SWay**)
{
return 0;
}
}
static int
-waypt_write_cb(GPS_PWay* way)
+waypt_write_cb(GPS_PWay*)
{
static int i;
int n = waypt_count();
}
static void
-route_noop(const route_head* wp)
+route_noop(const route_head* )
{
}
{ "Cyan", 0xFFFF00 },
{ "White", 0xFFFFFF },
{ "Transparent", unknown_color }, /* Currently not handled */
- { NULL }
+ { NULL, 0 }
};
#define GT_COLORS_CT ((sizeof(gt_colors) / sizeof(gt_colors[0])) - 1)
/*
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void goog_script(xg_string args, const QXmlStreamAttributes*)
{
-#if NEW_STRINGS
- if (true) {
-#else
- if (args) {
-#endif
- if (script) {
- script = xstrappend(script, CSTRc(args));
- } else {
- script = xstrdup(args);
- }
+ if (script) {
+ script = xstrappend(script, CSTRc(args));
+ } else {
+ script = xstrdup(args);
}
}
+
void goog_points(xg_string args, const QXmlStreamAttributes*)
{
-#if NEW_STRINGS
- if (true) {
-#else
- if (args) {
-#endif
- if (encoded_points) {
- encoded_points = xstrappend(encoded_points, CSTRc(args));
- } else {
- encoded_points = xstrdup(args);
- }
+ if (encoded_points) {
+ encoded_points = xstrappend(encoded_points, CSTRc(args));
+ } else {
+ encoded_points = xstrdup(args);
}
}
+
void goog_levels(xg_string args, const QXmlStreamAttributes*)
{
-#if NEW_STRINGS
- if (true) {
-#else
- if (args) {
-#endif
- if (encoded_levels) {
- encoded_levels = xstrappend(encoded_levels, CSTRc(args));
- } else {
- encoded_levels = xstrdup(args);
- }
+ if (encoded_levels) {
+ encoded_levels = xstrappend(encoded_levels, CSTRc(args));
+ } else {
+ encoded_levels = xstrdup(args);
}
}
static int goog_step = 0;
-static long
+long
decode_goog64(const QByteArray& str, int& pos)
{
long result = 0;
NULL,
};
-void wpt_s(xg_string args, const QXmlStreamAttributes*)
+void wpt_s(xg_string, const QXmlStreamAttributes*)
{
wpt_tmp = new Waypoint;
wpt_tmp_queued = 0;
}
-void wpt_e(xg_string args, const QXmlStreamAttributes*)
+void wpt_e(xg_string, const QXmlStreamAttributes*)
{
if (wpt_tmp_queued) {
waypt_add(wpt_tmp);
{
wpt_tmp->SetCreationTime(xml_parse_time(args));
}
-void wpt_coord(const QString& args, const QXmlStreamAttributes* attrv)
+void wpt_coord(const QString& args, const QXmlStreamAttributes*)
{
int n = 0;
double lat, lon, alt;
}
}
-void trk_coord(xg_string args, const QXmlStreamAttributes* attrv)
+void trk_coord(xg_string args, const QXmlStreamAttributes*)
{
int consumed = 0;
double lat, lon, alt;
void
-kml_output_linestyle(char* color, int width)
+kml_output_linestyle(char* /*color*/, int width)
{
// Style settings for line strings
writer->writeStartElement("LineStyle");
}
void
-nmea_track_init(const route_head* rte)
+nmea_track_init(const route_head*)
{
last_time = -1;
}
/*
Route / track simplification filter
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Copyright (C) 2005 Olaf Klein, o.b.klein@gpsbabel.org
Based on kml.c, Keyhole "kml" format.
- Copyright (C) 2005 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
teletype .way module
- Copyright (C) 2009 Robert Lipe, robertlipe@gpsbabel.org
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Output only format for Human Readable formats.
Copyright (C) 2004 Scott Brynen, scott (at) brynen.com
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/*
Access to U.S. Census Bureau "tiger" format.
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Based on the specifications found in the TopoMapPro documentation available from website
----------------------------------------------------------------------------------------
- Copyright (C) 2002 Robert Lipe, robertlipe@usa.net
+ Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
};
/* work variables for wfff_xxx */
-static char* ap_mac =0;
-static char* ap_ssid =0;
-static char* ap_type =0;
-static char* ap_wep =0;
+static QString ap_mac;
+static QString ap_ssid;
+static QString ap_type;
+static QString ap_wep;
static int ap_chan =0;
static time_t ap_first =0;
-static char* ap_last =0;
+static QString ap_last;
static float ap_mnrssi =0.0;
static float ap_mxrssi =0.0;
static float ap_hdop =0.0;
static double ap_lon =0.0;
/* Start of AP block */
-void wfff_s(xg_string args, const QXmlStreamAttributes*)
+void wfff_s(xg_string, const QXmlStreamAttributes*)
{
- xfreez(ap_mac);
- xfreez(ap_ssid);
- xfreez(ap_type);
- xfreez(ap_wep);
- xfreez(ap_last);
ap_mnrssi=0.0;
ap_mxrssi=0.0;
ap_chan=0;
ap_hdop=0.0;
ap_first=0;
- ap_last=0;
+ ap_last=QString();
ap_lat=0.0;
ap_lon=0.0;
}
-#if NEW_STRINGS
-// anything here involving 'xstrdup' should be fixed by fixing the underlying data type.
+
void wfff_mac(const QString& args, const QXmlStreamAttributes*) { ap_mac = xstrdup(args); }
void wfff_ssid(const QString& args, const QXmlStreamAttributes*) { ap_ssid = xstrdup(args); }
void wfff_type(const QString& args, const QXmlStreamAttributes*) { ap_type = xstrdup(args); }
void wfff_hdop(const QString& args, const QXmlStreamAttributes*) { ap_hdop = args.toDouble(); }
void wfff_lat(const QString& args, const QXmlStreamAttributes*) { ap_lat = args.toDouble(); }
void wfff_lon(const QString& args, const QXmlStreamAttributes*) { ap_lon = args.toDouble(); }
-#else
-
-void wfff_mac(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_mac = xstrdup(args);
- }
-}
-
-void wfff_ssid(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_ssid = xstrdup(args);
- }
-}
-
-void wfff_type(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_type = xstrdup(args);
- }
-}
-
-void wfff_mnrssi(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_mnrssi = atof(args);
- }
-}
-
-void wfff_mxrssi(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_mxrssi = atof(args);
- }
-}
-
-void wfff_chan(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_chan = atoi(args);
- }
-}
-
-void wfff_first(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_first = xml_parse_time(args).toTime_t();
- }
-}
-
-void wfff_last(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_last = xstrdup(args);
- }
-}
-
-void wfff_wep(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_wep = xstrdup(args);
- }
-}
-
-void wfff_hdop(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_hdop = atof(args);
- }
-}
-
-void wfff_lat(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_lat = atof(args);
- }
-}
-
-void wfff_lon(xg_string args, const QXmlStreamAttributes*)
-{
- if (args) {
- ap_lon = atof(args);
- }
-}
-#endif
/* End of AP Block, set waypoint and add */
static long tosscount=0;
snprintf(desc, sizeof desc,
"%s/%s/WEP %s/Ch %d/%2.0fdB/%2.0fdB/%s",
- (snmac?ap_ssid:ap_mac), ap_type, ap_wep,
- ap_chan, ap_mnrssi, ap_mxrssi, ap_last);
+ snmac?CSTR(ap_ssid):CSTR(ap_mac), CSTR(ap_type), CSTR(ap_wep),
+ ap_chan, ap_mnrssi, ap_mxrssi, CSTR(ap_last));
wpt_tmp->description = desc;
wpt_tmp->latitude = ap_lat;
} else {
tosscount++;
}
-
- /* cleanup */
- xfreez(ap_mac);
- xfreez(ap_ssid);
- xfreez(ap_type);
- xfreez(ap_wep);
- xfreez(ap_last);
-
}
-
void
wfff_xml_rd_init(const char* fname)
{
void
wfff_xml_rd_deinit(void)
{
-
- /* cleanup */
- xfreez(ap_mac);
- xfreez(ap_ssid);
- xfreez(ap_type);
- xfreez(ap_wep);
- xfreez(ap_last);
-
xml_deinit();
if (tosscount) {